package day05;

/**
 * @author wangzhisen
 * @Desc TODO
 * @date 2025/4/14
 *
 * 练习1：字符串反转
 */
public class TestString01 {
    public static void main(String[] args) {
        String str = "Hello World";
        String str1 = new StringBuilder(str).reverse().toString();
        System.out.println("反转前："+str);
        System.out.println("反转后："+str1);
    }
}
